package com.example.demo01.Service.webService;

import com.example.demo01.Dao.webDao.BookDao;
import com.example.demo01.Entity.webEntity.Book;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BookService {

    @Autowired
    BookDao bookDao;

    public List<Book> findAllBooks(){ return bookDao.findAllBooks(); }
    public List<Book> findBookByName(String name) { return bookDao.findBookByName(name); }

}
